Skip to content

Rename parameter in rbs_intern_type_name for clarity#3023

Merged
soutaro merged 1 commit into
masterfrom
claude/ruby-c99-compile-fix-3azkaa
Jul 8, 2026
Merged

Rename parameter in rbs_intern_type_name for clarity#3023
soutaro merged 1 commit into
masterfrom
claude/ruby-c99-compile-fix-3azkaa

Conversation

@soutaro

@soutaro soutaro commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Improved code clarity by renaming a parameter in the rbs_intern_type_name function to better reflect its purpose.

Key Changes

  • Renamed the namespace parameter to type_namespace in the rbs_intern_type_name function
  • Updated the corresponding variable reference in the function body to maintain consistency

Implementation Details

This change makes the parameter name more explicit and descriptive, distinguishing it from other namespace-related parameters in the codebase. The rename clarifies that this namespace specifically relates to type names, improving code readability and reducing potential confusion when working with multiple namespace types.

https://claude.ai/code/session_013PkLsC6iM8VJgTB3aCrcXh

The C99_compile CI job builds the extension with `-Werror
-Wc2x-extensions`, which promotes the `-Wc++-keyword` diagnostic
(enabled via `-Wc++-compat`) to an error. The `namespace` parameter of
`rbs_intern_type_name` collides with a C++ keyword, so the build failed
with:

    error: identifier 'namespace' conflicts with a C++ keyword [-Werror,-Wc++-keyword]

Rename the parameter to `type_namespace` to keep the source C++-compatible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PkLsC6iM8VJgTB3aCrcXh
@soutaro soutaro added this to the RBS 4.1 milestone Jul 8, 2026
@soutaro soutaro enabled auto-merge July 8, 2026 04:35
@soutaro soutaro merged commit c0c3160 into master Jul 8, 2026
25 of 26 checks passed
@soutaro soutaro deleted the claude/ruby-c99-compile-fix-3azkaa branch July 8, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants